#pragma once
#include <iostream>

class Task
{
public:
    Task()
    {
    }
    Task(int x, int y) : a(x), b(y)
    {
    }

    void Add()
    {
        ret = a + b;
    }
    void operator()()
    {
        Add();
    }
    void Print()
    {
        std::cout << a << "+" << b << "=" << ret << std::endl;
    }

    ~Task()
    {
    }

private:
    int a;
    int b;
    int ret;
};